package org.speed.mes.base.domain.bo;

import org.speed.mes.base.domain.BsSupplier;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 供应商业务对象 bs_supplier
 *
 * @author speed-mes
 * @date 2024-06-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BsSupplier.class, reverseConvertGenerate = false)
public class BsSupplierBo extends BaseEntity {

    /**
     * 供应商id
     */
    @NotNull(message = "供应商id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 供应商编码
     */
    @NotBlank(message = "供应商编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 供应商名称
     */
    @NotBlank(message = "供应商名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 供应商简称
     */
    private String shortName;

    /**
     * 供应商英文名称
     */
    private String enName;

    /**
     * 供应商简介
     */
    private String intro;

    /**
     * 供应商评级
     */
    private String grade;

    /**
     * 供应商评分
     */
    private Long score;

    /**
     * 供应商地址
     */
    private String address;

    /**
     * 供应商邮箱地址
     */
    private String email;

    /**
     * 供应商电话
     */
    private String telephone;

    /**
     * 统一社会信用代码
     */
    private String creditCode;

    /**
     * 是否启用 0停用 1启用
     */
    private String status;

    /**
     * 备注
     */
    private String remark;


}
